package com.sunyard.constant.manage;

/**
 * 商户常量
 *
 * @author DUANYUBIN
 * @date 2021-04-16 09:58
 **/
public class ManageConstant {

    public static final String ARTIF_FIRST = "000";

    public static final String ORG_FIRST = "320099999";

    public static final String IS_LIMIT = "1";

    /**
     * 微信支付方式(互金系统)
     * 0 余额 1 借记卡(快捷支付) 2 贷记卡
     */
//    public static final String HUJIN_WX_PAY_ZERO = "0";
    public static final String HUJIN_WX_PAY_ONE = "1";
    public static final String HUJIN_WX_PAY_TWO = "2";
    /**
     * 支付宝支付方式(互金系统)
     * 0 余额 1 借记卡(快捷支付) 2 贷记卡 3 花呗
     */
//    public static final String HUJIN_ALI_PAY_ZERO = "0";
    public static final String HUJIN_ALI_PAY_ONE = "1";
    public static final String HUJIN_ALI_PAY_TWO = "2";
    public static final String HUJIN_ALI_PAY_THREE = "3";


    /**
     * 微信支付方式(管理平台)
     * 1 快捷支付 2 贷记卡
     */
    public static final String WX_PAY_ONE = "1";
    public static final String WX_PAY_TWO = "2";
    /**
     * 支付宝支付方式(管理平台)
     * 支付宝支付方式(1:快捷支付、2：余额宝支付、3：贷记卡支付、4：花呗支付，以‘+’分割）'
     */
    public static final String ALI_PAY_ONE = "1";
    public static final String ALI_PAY_TWO = "2";
    public static final String ALI_PAY_THREE = "3";
    public static final String ALI_PAY_FOUR = "4";


    /**
     * 企业类型 enterpriseType
     * 0101,企业
     * 0102,个体户
     * 0103,政府事业单位
     * 0104,其他组织
     * 0105,小微商户
     */
    public static final String ENTERPRISE_TYPE_0105 = "0105";
    public static final String ENTERPRISE_TYPE_0103 = "0103";
    public static final String ENTERPRISE_TYPE_0101 = "0101";
    public static final String ENTERPRISE_TYPE_0102 = "0102";
    public static final String ENTERPRISE_TYPE_0104 = "0104";


    /**
     * 支持的通道类型 可多选  以“+”分隔 1-微信条码 2-支付宝条码 3-银联二维码 4-银行卡通道
     */
    public static final String CHANNEL_WX = "1";
    public static final String CHANNEL_ALI = "2";
    public static final String CHANNEL_UN = "3";
    public static final String CHANNEL_BANK = "4";
    public static final String CHANNEL_BH = "5";


    /**
     * 需处理的费率字段名称
     */
    public static final String WEIXIN_CC_FEE = "weixinCcFee";
    public static final String WEIXIN_DC_FEE = "weixinDcFee";
    public static final String WX_RULE_ID = "wxRuleId";
    public static final String ALI_CC_FEE = "aliCcFee";
    public static final String ALI_DC_FEE = "aliDcFee";
    public static final String ALI_CHANNEL_FEE = "aliChannelFee";
    public static final String UNIONPAY_FEE = "unionpayFee";
    public static final String UNIONPAY_CHANNEL_FEE = "unionpayChannelFee";
    public static final String BANK_DEBIT_CARD_RE_TYPE = "bankDebitCardReType";
    public static final String BANK_DEBIT_CARD_RE_RATE = "bankDebitCardReRate";
    public static final String BANK_CREADIT_CARD_TYPE = "bankCreaditCardType";
    public static final String BANK_CREADIT_CARD_RE_RATE = "bankCreaditCardReRate";
    public static final String BANK_CREADIT_CARD_TOP = "bankCreaditCardTop";
    public static final String IS_OTHER_BANK_CREADIT_CARD = "isOtherBankCreaditCard";
    public static final String DSC_RATE6 = "dscRate6";
    public static final String IS_BANK_CREADIT_CARD = "isBankCreaditCard";
    public static final String DEBIT_CARD_VOID = "debitCardVoid";
    public static final String CREADIT_CARD_VOID = "creaditCardVoid";
    public static final String IS_OWNER_AGENT = "isOwnerAgent";


    /**
     * 1-PC
     * 2-商户暂存
     * 3-excel进件
     * 5-收银宝
     * 6-审核拒绝
     * 7-迁移商户
     */
    public static final String SOURCE_TYPE_1 = "1";
    public static final String SOURCE_TYPE_2 = "2";
    public static final String SOURCE_TYPE_3 = "3";
    public static final String SOURCE_TYPE_5 = "5";
    public static final String SOURCE_TYPE_6 = "6";
    public static final String SOURCE_TYPE_7 = "7";
    public static final String SOURCE_TYPE_8 = "8";
    /**
     * 1-启用状态
     * 2-停用状态
     * 3-注销状态
     * 4-锁定
     * 5-黑名单
     */
    public static final String STATUS_OPEN = "1";
    public static final String STATUS_CLOSE = "2";
    public static final String STATUS_DELETE = "3";
    public static final String STATUS_BLOCK = "4";
    public static final String STATUS_BLACK = "5";


    /**
     * 审核操作 1 -添加 2-修改 3-删除 4-启用 5-停用
     */
    public static final String ADD = "1";
    public static final String UPDATE = "2";
    public static final String DELETE = "3";
    public static final String ENABLE = "4";
    public static final String DISABLE = "5";


    /**
     * 微信/支付宝入驻状态
     * 00-成功
     * 01-失败
     * 02-未入住
     * 03-修改失败
     * 04-绑定终端失败
     */
    public static final String CREATE_SUCCESS = "00";
    public static final String CREATE_FAILURE = "01";
    public static final String CREATE_NON = "02";
    public static final String UPDATE_NON = "03";
    public static final String BIND_NON = "04";
    public static final String CREATE_ERR = "系统内部异常";

    /**
     * t0Flag 是否T+0  0-否 1-是
     */
    public static final String T0_FLAG_IS = "1";
    public static final String T0_FLAG_NO = "0";


    /**
     * 结算账号级别 AcctLevel
     */
    public static final String ACCT_LEVEL_1 = "1";
    public static final String ACCT_LEVEL_2 = "2";

    /**
     * 结算账号账户类型 对私P 对公U
     */
    public static final String P_U_FLG_P = "P";
    public static final String P_U_FLG_U = "U";

    /**
     * 账户控制状态 0：正常  1：只收不付  2：只付不收  3：封存
     */
    public static final String ACCT_CTL_STS_0 = "0";
    public static final String ACCT_CTL_STS_1 = "1";
    public static final String ACCT_CTL_STS_2 = "2";
    public static final String ACCT_CTL_STS_3 = "3";

    /**
     * 活存帐户状态  0:正常（正常户及部份冻结）2:冻结（全部冻结） 3:结清  7:单向冻结 1 - 销户
     */
    public static final String DDP_ACCT_STS_0 = "0";
    public static final String DDP_ACCT_STS_2 = "2";
    public static final String DDP_ACCT_STS_3 = "3";
    public static final String DDP_ACCT_STS_7 = "7";
    public static final String DDP_ACCT_STS_1 = "1";
    /**
     * 是否黑名单 1-是 0-否
     */
    public static final String IS_BLACK = "1";
    public static final String NOT_BLACK = "0";

    /**
     * 是否免密免签  01-不开通、02-仅开通免签、03-开通免密免签 IsNoSecret
     */
    public static final String IS_NO_SECRET_01 = "01";
    public static final String IS_NO_SECRET_02 = "03";
    public static final String IS_NO_SECRET_03 = "02";

    /**
     * 实际经营类型
     */
    public static final String ACTUAL_CERTIF_TYPE_0401 = "0401";

    /**
     * 是否银联非标商户 isNoStandardMchnt
     * 0-否
     * 1-是
     */
    public static final String IS_NO_STANDARD_MCHNT_0 = "0";
    public static final String IS_NO_STANDARD_MCHNT_1 = "1";

    /**
     * 商户模式
     * 1-单一商户
     * 2-集团商户
     */
    public static final String MCHNT_MODEL_1 = "1";
    public static final String MCHNT_MODEL_2 = "2";


    /**
     * 暂存状态 0-全部
     * 1-未补录
     * 2-已提交
     * 3-已删除
     * 4-审核通过
     * 5-审核不通过
     */
    public static final String TMP_STATUS_0 = "0";
    public static final String TMP_STATUS_1 = "1";
    public static final String TMP_STATUS_2 = "2";
    public static final String TMP_STATUS_3 = "3";
    public static final String TMP_STATUS_4 = "4";
    public static final String TMP_STATUS_5 = "5";

    /**
     * 门店暂存来源(1-批量)
     */
    public static final String BATCH_MS = "1";

    /**
     * 借记卡手续费   limitRate1
     * 贷记卡手续费 limitRate2
     */
    public static final String LIMIT_RATE_1 = "limitRate1";
    public static final String LIMIT_RATE_2 = "limitRate2";


    /**
     * 门店类型 1-总店 2-分店
     */
    public static final String SHOP_TYPE_1 = "1";
    public static final String SHOP_TYPE_2 = "2";

    /**
     * 结算状态 Y-已处理、N-未处理
     */
    public static final String SETTLE_STATUS_Y = "Y";
    public static final String SETTLE_STATUS_N = "N";

    /**
     * 营业证明证件类型 0301 全国组织机构代码证 0302 营业执照 0303 社会团体证 0304 其他(对公) 0305 其他(对私)
     * mchntCertifType
     */
    public static final String MCHNT_CERTIF_TYPE_0301 = "0301";
    public static final String MCHNT_CERTIF_TYPE_0302 = "0302";
    public static final String MCHNT_CERTIF_TYPE_0303 = "0303";
    public static final String MCHNT_CERTIF_TYPE_0304 = "0304";
    public static final String MCHNT_CERTIF_TYPE_0305 = "0305";

    /**
     * 互金回调状态 0-成功 1-新增失败 2-未同步 3-修改 4-修改失败
     */
    public static final String HUJIN_SYN_0 = "0";
    public static final String HUJIN_SYN_1 = "1";
    public static final String HUJIN_SYN_2 = "2";
    public static final String HUJIN_SYN_3 = "3";
    public static final String HUJIN_SYN_4 = "4";


    /**
     * 法人证件类型 artifCertifType
     * 1-身份证 2-军官证 3-护照 4-港澳台通行证 5-其他
     */
    public static final String ARTIF_CERTIF_TYPE_1 = "1";
    public static final String ARTIF_CERTIF_TYPE_2 = "2";
    public static final String ARTIF_CERTIF_TYPE_3 = "3";
    public static final String ARTIF_CERTIF_TYPE_4 = "4";
    public static final String ARTIF_CERTIF_TYPE_5 = "5";

    /**
     * 法人信息校验返回值
     * 0000 正常 0001 黑名单 2 灰名单
     */
    public static final String ARTIF_RESULT_0000 = "0000";
    public static final String ARTIF_RESULT_0001 = "0001";
    public static final String ARTIF_RESULT_0002 = "0002";

    /**
     * 用户类型 1-商户 2-门店 3-店员
     */
    public static final int USER_TYPE_1 = 1;
    public static final int USER_TYPE_2 = 2;
    public static final int USER_TYPE_3 = 3;

    /**
     * 互金审核不通过状态同步 0 分店审核失败，1 T0审核失败
     */
    public static final String TYPE_0 = "0";
    public static final String TYPE_1 = "1";

    /**
     * 暂存保存还是新增 0 新增，1 保存
     */
    public static final String OLD_OR_NEW_0 = "0";
    public static final String OLD_OR_NEW_1 = "1";

    /**
     * 店员状态 1-正常 2-停用 3-注销
     */
    public static final String STAFF_STATUS_1 = "1";
    public static final String STAFF_STATUS_2 = "2";
    public static final String STAFF_STATUS_3 = "3";

    /**
     * 小微商户 以 商户_ 开头
     */
    public static final String SMALL_NAME_START = "商户_";

    /**
     * 金融便民服务到村标识 isVillage
     * 1-是 0-否
     */
    public static final String IS_VILLAGE_1 = "1";
    public static final String IS_VILLAGE_0 = "0";

    /**
     * 核心进件状态 0-成功 1-新增 2-修改 3-待审核
     */
    public static final String HOST_STATUS_0 = "0";
    public static final String HOST_STATUS_1 = "1";
    public static final String HOST_STATUS_2 = "2";
    public static final String HOST_STATUS_3 = "3";


    /**
     * 机构级别
     * 1-农信 2-总行 3-支行
     */
    public static final String ORG_LEVEL_1 = "1";
    public static final String ORG_LEVEL_2 = "2";
    public static final String ORG_LEVEL_3 = "3";

    /**
     * totalCount
     */
    public static final String TOTAL_COUNT_0 = "0";

    /**
     * 长期
     */
    public static final String LONG_TERM = "长期";
    public static final String IS_LONG_TERM_0 = "0";
    public static final String IS_LONG_TERM_1 = "1";


    /**
     * 微信支付方式 1-快捷支付 2-贷记卡支付
     */
    public static final String WEIXIN_PAY_MOD_1 = "1";
    public static final String WEIXIN_PAY_MOD_2 = "2";

    /**
     * 微信禁用支付方式 no_credit 信用卡
     */
    public static final String WEIXIN_LIMIT_PAY = "no_credit";

    /**
     * 支付宝支付方式 1:快捷支付、2：余额宝支付、3：贷记卡支付、4：花呗支付
     */
    public static final String ALI_PAY_MOD_1 = "1";
    public static final String ALI_PAY_MOD_2 = "2";
    public static final String ALI_PAY_MOD_3 = "3";
    public static final String ALI_PAY_MOD_4 = "4";

    /**
     * 支付宝禁用支付方式 moneyFund 余额宝
     * creditCardExpress creditCardCartoon creditCard贷记卡
     * pcredit pcreditpayInstallment 花呗
     * credit_group信用支付类型（包含 信用卡卡通，信用卡快捷,花呗，花呗分期
     **/
    public static final String MONEY_FUND = "moneyFund";
    public static final String CREDIT_CARD_EXPRESS = "creditCardExpress";
    public static final String CREDIT_CARD_CARTOON = "creditCardCartoon";
    public static final String CREDIT_CARD = "creditCard";
    public static final String PCREDIT = "pcredit";
    public static final String PCREDITPAY_INSTALLMENT = "pcreditpayInstallment";
    public static final String CREDIT_GROUP = "credit_group";

    /**
     * 不允许免密免签的mcc 6012，9498，6010，6011，6051
     */
    public static final String MCC_6012 = "6012";
    public static final String MCC_9498 = "9498";
    public static final String MCC_6010 = "6010";
    public static final String MCC_6011 = "6011";
    public static final String MCC_6051 = "6051";


    /**
     * uat桶路径
     */
    public static final String UAT_AMAZON = "http://001nxysd.eosdev.slsyun:8060/001zhsd/";
    public static final String UAT_AMAZON_LW = "http://66.17.201.19:7480/nxysd-kf/";
    /**
     * uat域名路径
     */
    public static final String UAT_URL = "http://66.6.70.182/img/";
    public static final String UAT_URL_1 = "http://66.6.70.182/imgs/";
    /**
     * prod桶路径
     */
    public static final String PROD_AMAZON = "http://001nxysd.eos.slsyun:8060/001nxysd/";
    /**
     * prod域名路径
     */
    public static final String PROD_URL = "https://zhsd.js96008.com:2443/img/";

    /**
     * 微信申请服务
     * JSAPI：JSAPI 支付；
     * APPLET：小程序支付；
     * MICROPAY：付款码支付；
     * APP：app 支付；
     * MWEB：H5 支付；
     * PAP：委托代扣支付；
     */
    public static final String SERVICE_CODE = "[JSAPI,APPLET,MICROPAY]";

    /**
     * 操作标识
     * 00-新增
     * 01-修改
     * 02-注销
     */
    public static final String OPERATION_ID_BIND = "00";
    public static final String OPERATION_ID_UPDATE = "01";
    public static final String OPERATION_ID_DISBIND = "02";

    /**
     * wxappid
     */
    public static final String TRADE_APPID = "wxe259a3f27727050c";

    /**
     * wxmchid
     */
    public static final String WX_MCHID = "1900010591";

    /**
     * aliappid
     */
    public static final String ALI_APPID = "2017053107394231";


    /**
     * 商户证件类型
     * NATIONAL_LEGAL 营业执照
     * IDENTITY_CARD 个人身份证
     */
    public static final String BUSINESS_LICENSE_TYPE_1 = "NATIONAL_LEGAL";
    public static final String BUSINESS_LICENSE_TYPE_2 = "IDENTITY_CARD";


    /**
     * 地址类型
     */
    public static final String ADDRESS_TYPE = "BUSINESS_ADDRESS";

    /**
     * 地址类型
     */
    public static final String M3 = "INDIRECT_LEVEL_M3";

    /**
     * 联系人类型
     */
    public static final String CONTACT_TYPE = "LEGAL_PERSON";

    /**
     * 收单服务商
     */
    public static final String CHANNEL_NAME = "江苏省农村信用社联合社";

    /**
     * 商户来源机构标识
     */
    public static final String SOURCE_ID = "2088721635346421";

    /**
     * 微信支付宝终端状态
     */
    public static final String WX_SUCCESS = "0001";
    public static final String ALI_SUCCESS = "0100";
    public static final String ALL_SUCCESS = "0000";
    public static final String ALL_FAIL = "0101";

    /**
     * 微信支付宝终端失败信息
     */
    public static final String WX_FAIL = "UP18A7101";
    public static final String ALI_FAIL = "UP0200019";


    /**
     * 门店二维码初始化次数
     */
    public static final Integer QRCODELOAD_TIMES = 0;

    /**
     * 259上线时间
     */
    public static final String CREATE_DATETIME = "2022-04-01 10:00:00";

    /**
     * 法人柜员类型
     * 1-录入员
     * 2-审核员
     * 3-自定义
     */
    public static final String ARTIF_CELLER_TYPE_1 = "1";
    public static final String ARTIF_CELLER_TYPE_2 = "2";
    public static final String ARTIF_CELLER_TYPE_3 = "3";

    /**
     * 法人行功能类型
     * 1-pos和二维码费率和限额分离
     */
    public static final String ARTIF_FUNCTION_1 = "1";

    /**
     * 开通与未开通
     */
    public static final String DEFAULT_0 = "0";
    public static final String OPEN_1 = "1";
    public static final String CLOSE_2 = "2";

    /**
     * 商户结算账号状态（0-异常，1-正常）
     */
    public static final String SETNO_0 = "0";
    /**
     * 商户结算账号状态（0-异常，1-正常）
     */
    public static final String SETNO_1 = "1";
}
